-- GENERATED SPELL FOR [Cobalt Wyrmkin] --


function spell0_7435(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7435', 10268, 1)
end

function spell1_7435(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7435', 601, 1)
end

function Sorts_7435(pUnit, Event)
local choix_sorts_7435 = math.random(0, 1)
if choix_sorts_7435 == 0 then
pUnit:RegisterEvent('spell0_7435', 1, 1)
end
if choix_sorts_7435 == 1 then
pUnit:RegisterEvent('spell1_7435', 1, 1)
end
end

function mob7435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7435', math.random(1500, 3000), 1)
end

function mob7435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7435, 1, 'mob7435_Action')
RegisterUnitEvent(7435, 2, 'mob7435_Leave')
RegisterUnitEvent(7435, 3, 'mob7435_Kill')
RegisterUnitEvent(7435, 4, 'mob7435_Die')
